import http from "../utils/http/service";

// 质量检查流程相关接口

// 表格数据
export const postQtyCheckList = (data): any => {
  return http.post(`/snow-admin/qtyCheck/flowList`, data);
};

// 删除数据
export const postQtyCheckDelete = (data): any => {
  return http.post(`/snow-admin/qtyCheck/delete`, data);
};

// 获取检查列表下拉数据
export const dropDownList = (data): any => {
  return http.post(`/snow-admin/qtyCheck/dropDownList`, data);
};

// 获取表单内容数据
export const checkContentList = (data): any => {
  return http.post(`/snow-admin/qtyCheck/checkContentList`, data);
};

// 质量检查流程发起
export const postQtyCheckStart = (data): any => {
  return http.post(`/snow-admin/qtyCheck/flowStart`, data);
};

// 质量检查流程发起阶段的保存
export const postStorageFlowStart = (data): any => {
  return http.post(`/snow-admin/qtyCheck/storageFlowStart`, data);
};

// 质量检查详情获取
export const getFlowInfo = (data): any => {
  return http.get(`/snow-admin/qtyCheck/flowInfo/${data.id}`);
};

// 质量检查流程提交
export const postFlowSubmit = (data): any => {
  return http.post(`/snow-admin/qtyCheck/flowSubmit`, data);
};

// 质量检查流程驳回
export const postFlowReject = (data): any => {
  return http.post(`/snow-admin/qtyCheck/flowReject`, data);
};
